import { App } from 'vue';
import Button from '@/components/Button/index';

import { permissionDirective } from '@/permission/index';

const setupPlugins = (app: App) => {
  app.use(Button);

  app.directive('hasPermission', permissionDirective);
};

export { setupPlugins };
